-- GENERATED SPELL FOR [En'kilah Necromancer] --


function spell0_25378(pUnit, Event) --@Corruption,n/a--
pUnit:FullCastSpellOnTarget(32063,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25378', 26000, 1)
end

function spell1_25378(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25378', 3000, 1)
end

function Sorts_25378(pUnit, Event)
local choix_sorts_25378 = math.random(0, 1)
if choix_sorts_25378 == 0 then
pUnit:RegisterEvent('spell0_25378', 1, 1)
end
if choix_sorts_25378 == 1 then
pUnit:RegisterEvent('spell1_25378', 1, 1)
end
end

function mob25378_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25378', math.random(1500, 3000), 1)
end

function mob25378_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25378_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25378_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25378, 1, 'mob25378_Action')
RegisterUnitEvent(25378, 2, 'mob25378_Leave')
RegisterUnitEvent(25378, 3, 'mob25378_Kill')
RegisterUnitEvent(25378, 4, 'mob25378_Die')
